package com.ysz.common.threadpool;

import com.ysz.Starter;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @ClassName ThreadPoolComm
 * @Description TODO
 * @Data 15:00
 * @Version 1.0
 * @Author ysz
 */
public class ThreadPoolComm {

    /**
     * 定义客户端线程池
     */
    public static final ExecutorService CLIENT_THREADS = Executors.newFixedThreadPool(Starter.clientsNode.length);

    /**
     * 定义服务端线程池
     */
    public static final ExecutorService SERVER_THREADS = Executors.newSingleThreadExecutor();
}
